package org.compression.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.model.auth.AuthGroup;
@Mapper
public interface AuthGroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AuthGroup record);

    int insertSelective(AuthGroup record);

    AuthGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AuthGroup record);

    int updateByPrimaryKey(AuthGroup record);
    
    public List<AuthGroup> getGroupRelate(String id);
    
    
    @Select("select id from sm_auth_group where book_id=#{book_id} and group_id=#{group_id}")
    public Object getselectById(@Param("book_id")Integer integer,@Param("group_id")Integer b);
    
    @Delete("delete from  sm_auth_group  where book_id=#{book_id} and group_id=#{group_id}")
    public void deleteRelate(@Param("book_id")Integer integer,@Param("group_id")Integer b);
    
    
    
}